package com.hd123.jixia.dao;

import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * 权限节点dao
 *
 * Date: 2021/11/17 17:14
 *
 * @author zhangxin
 * @email zhangxin@hd123.com
 */
@Repository
public class PowerNodeDao {

  /**
   * 根据id查询
   */
  public PowerNodeEntity getById(String id) {
    // ...

    return new PowerNodeEntity();
  }

  /**
   * 根据名称获取
   */
  public PowerNodeEntity getByName(String name) {
    // ...

    return new PowerNodeEntity();
  }

  /**
   * 根据父节点获取
   */
  public List<PowerNodeEntity> getByParentNodeId(String parentNodeId) {
    // ...

    return new ArrayList<>();
  }
}
